package com.ruicar.afs.cloud.channel.online.condition;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

@Data
public class QuotaCondition {
    private Long riskId; // 新车风控id
    /*新车保证金调整*/
    private BigDecimal marginTune;

    /*新车 额度表 id*/
    private Long quotaId;
    /*新车签放额度调整*/
    private BigDecimal quotaSigning;
    /*新车临时额度*/
    private BigDecimal tempQuota;
    /**
     * 有效期
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date validityTermEnd;

    /*先签后抵 额度表 id*/
    private Long quotaIdPut;
    /*先签后抵 签放额度调整*/
    private BigDecimal quotaSigningPut;
    /*先签后抵 临时额度*/
    private BigDecimal tempQuotaPut;
    /*先签后抵 有效期*/
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date validityTermEndPut;

    /*二手车风控id*/
    private Long riskIdOld;
    /*二手车保证金调整*/
    private BigDecimal marginTuneOld;

    /*二手车 额度表 id*/
    private Long quotaIdOld;
    /**
     * 二手车 签放额度调整
     */
    private BigDecimal quotaSigningOld;
    /**
     * 二手车临时额度
     */
    private BigDecimal tempQuotaOld;
    /*二手车有效期*/
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date validityTermEndOld;

    /*先签后抵 额度表 id*/
    private Long quotaIdPutOld;
    /*先签后抵 签放额度调整*/
    private BigDecimal quotaSigningPutOld;
    /*先签后抵 临时额度*/
    private BigDecimal tempQuotaPutOld;
    /*先签后抵 有效期*/
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date validityTermEndPutOld;

    /*业务类型*/
    private String businessType;
    /*渠道id*/

    private Long channelId;

    //是否控制额度
    private String isLimitPut; //新车签放
    private String isLimitPledge; //新车先放后抵
    private String isLimitPutOld; //二手车签放
    private String isLimitPledgeOld; //二手车先放后抵



}
